﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TangoFamilyAndGuide.Master" AutoEventWireup="true" CodeBehind="FestivalModificar.aspx.cs" Inherits="TangoFamilyAndGuide.Site.FestivalModificar" Theme="Tango" Culture="en-GB" UICulture="en-GB" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<%@ Register TagPrefix="uc1" TagName="domicilio" Src="~/Controles/Domicilio.ascx" %>
<%@ Register TagPrefix="uc1" TagName="contacto" Src="~/Controles/Contacto.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" style="padding-left:10px">
        <tr>
            <td align="center" colspan="2" style="padding-top:20px">
                <asp:Label ID="TituloPaginaLabel" runat="server" SkinID="TituloPagina" Text="Modify Festival"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" style="padding-top:5px; font-weight: bold">
                Id. <asp:Label ID="IdFestivalLabel" runat="server"></asp:Label>
            </td>
            <td align="right" style="padding-left: 10px">
                <asp:Label ID="EstadoActualLabel" runat="server" SkinID="IndicadorValidacion"></asp:Label>        
            </td>      
        </tr>
        <tr>
            <td colspan="2">
                 <hr noshade="noshade" size="1" color="#cccccc" />
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right:5px; padding-top:2px; width:150px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="NombreTextBox"
                    ErrorMessage="Name of Festival" SetFocusOnError="True">
                    <asp:Label ID="Label4" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                </asp:RequiredFieldValidator>
                <asp:Label ID="Label5" runat="server" Text="Name"></asp:Label>
            </td>
            <td align="left" style="padding-top:2px">
                <asp:TextBox ID="NombreTextBox" runat="server" MaxLength="50" TabIndex="2" Width="400px"></asp:TextBox>
            </td>        
        </tr>
        <tr>
            <td align="right" style="padding-right:5px; padding-top:2px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DescripcionTextBox"
                    ErrorMessage="Description" SetFocusOnError="True">
                    <asp:Label ID="Label8" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                </asp:RequiredFieldValidator>
                <asp:Label ID="Label9" runat="server" Text="Description"></asp:Label>
            </td>
            <td align="left" style="padding-top:2px">
                <asp:TextBox ID="DescripcionTextBox" runat="server" TextMode="MultiLine" CssClass="MultilineFont" style="resize: none;" MaxLength="250" Height="100px" TabIndex="2" Width="400px"></asp:TextBox>
            </td>        
        </tr>
        <tr>
            <td align="right" style="padding-right:5px; padding-top:2px; padding-bottom: 2px">
                <asp:Label ID="FechaDesdeLabel" runat="server" Text="Day festival begins"></asp:Label>
            </td>
            <td align="left" style="padding-top:2px; padding-bottom: 2px">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:TextBox ID="FechaDesdeTextBox" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="FechaDesdeTextBox" runat="server" Format="dd/MM/yyyy" />
                        </td>
                        <td align="right" style="padding-right: 10px; padding-left: 30px; padding-top: 2px">
                            <asp:Label ID="FechaHastaLabel" runat="server" Text="Day festival ending"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="FechaHastaTextBox" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" TargetControlID="FechaHastaTextBox" runat="server" Format="dd/MM/yyyy" />
                        </td>
                    </tr>
                </table>
            </td>        
        </tr>
        <uc1:domicilio ID="Domicilio" runat="server"/>
        <uc1:contacto ID="Contacto" runat="server" />
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label18" runat="server" Text="Ticket Currency"></asp:Label>
	        </td>
			<td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" style="padding-top:5px">
				            <asp:DropDownList ID="MonedaEntradaDropDownList" runat="server" TabIndex="501" Width="180px" DataValueField="Id" DataTextField="Descr">
                            </asp:DropDownList>
                        </td>
                        <td style="padding-top:5px; padding-left: 30px; padding-right: 5px; text-align:right">
                            <asp:Label ID="Label11" runat="server" Text="Ticket Price"></asp:Label>
                        </td>
                        <td align="left" style="padding-top: 5px;">
                            <asp:TextBox ID="PrecioEntradaTextBox" runat="server" MaxLength="16" TabIndex="501" Width="100px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="PrecioEntradaRegularExpressionValidator" runat="server"
                                ControlToValidate="PrecioEntradaTextBox" ErrorMessage="error in format ticket price"
                                SetFocusOnError="True" ValidationExpression="[0-9]+(\.[0-9]+)?">
                                <asp:Label ID="Label6" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                            </asp:RegularExpressionValidator>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label3" runat="server" Text="Ticket Information"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="ComentarioEntradaTextBox" runat="server" TextMode="MultiLine" CssClass="MultilineFont" style="resize: none;" MaxLength="250" Height="100px" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                &nbsp;(example: http://www.tangofamilyandguide.com.ar) 
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label1" runat="server" Text="Web Site"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="WebSiteTextBox" runat="server" MaxLength="60" TabIndex="502"
                    Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                &nbsp;(example: info@tangofamilyandguide.com.ar)
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label12" runat="server" Text="Email (info) Site"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="EmailTextBox" runat="server" MaxLength="60" TabIndex="502"
                    Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                &nbsp;(example: https://www.facebook.com/milonga)
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label13" runat="server" Text="Facebook Address"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="FacebookTextBox" runat="server" MaxLength="60" TabIndex="502"
                     Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                &nbsp;(example: https://maps.google.es/?q=-34.582804,-58.420606)
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label14" runat="server" Text="Google Map Address"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="GoogleMapTextBox" runat="server" MaxLength="60" TabIndex="502"
                     Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label2" runat="server" Text="Dancers"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="BailarinesTextBox" runat="server" TextMode="MultiLine" CssClass="MultilineFont" style="resize: none;" MaxLength="250" Height="100px" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label10" runat="server" Text="Schedules"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:Panel ID="PanelgvEG" runat="server">
                <asp:GridView ID="gvEG" runat="server" AutoGenerateColumns="False" CssClass="grid"
                    AlternatingRowStyle-CssClass="gridAltRow" RowStyle-CssClass="gridRow" ShowFooter="True"
                    EditRowStyle-CssClass="gridEditRow" FooterStyle-CssClass="gridFooterRow" OnRowCancelingEdit="gvEG_RowCancelingEdit"
                    OnRowCommand="gvEG_RowCommand" OnRowDataBound="gvEG_RowDataBound" OnRowDeleting="gvEG_RowDeleting"
                    OnRowEditing="gvEG_RowEditing" OnRowUpdating="gvEG_RowUpdating" OnRowDeleted="gvEG_RowDeleted"
                    DataKeyNames="CodigoDiaSemDesde,CodigoDiaSemHasta">
                    <Columns>
                        <asp:TemplateField HeaderText="From the day" HeaderStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtHFechaDesde" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="HCalendarExtender1" TargetControlID="txtHFechaDesde" runat="server" Format="dd/MM/yyyy" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%# Eval("FechaDesde", "{0:dd/MM/yyyy}")%>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtHFechaDesde" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="HCalendarExtender11" TargetControlID="txtHFechaDesde" runat="server" Format="dd/MM/yyyy" />
                                <asp:RequiredFieldValidator ID="rfvtxtHFechaDesde" 
                                    runat="server" ControlToValidate="txtHFechaDesde" ErrorMessage="Please Enter a Day."
                                    SetFocusOnError="True" ValidationGroup="Insert" ForeColor="Red">*</asp:RequiredFieldValidator>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Until the day" HeaderStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtHFechaHasta" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="HCalendarExtender2" TargetControlID="txtHFechaHasta" runat="server" Format="dd/MM/yyyy" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%# Eval("FechaHasta", "{0:dd/MM/yyyy}")%>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtHFechaHasta" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="HCalendarExtender21" TargetControlID="txtHFechaHasta" runat="server" Format="dd/MM/yyyy" />
                                <asp:RequiredFieldValidator ID="rfvtxtHFechaHasta" 
                                    runat="server" ControlToValidate="txtHFechaHasta" ErrorMessage="Please Enter a Day."
                                    SetFocusOnError="True" ValidationGroup="Insert" ForeColor="Red">*</asp:RequiredFieldValidator>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Opening time" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="50px" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtHorarioDesde" runat="server" Text='<%# Bind("HorarioDesde") %>'
                                    MaxLength="5" Width="50px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvHorarioDesde" ValidationGroup="Update" runat="server"
                                    ControlToValidate="txtHorarioDesde" ErrorMessage="Please Enter Open Hour"
                                    ToolTip="Please Enter Open Hour" SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="reHorarioDesde" runat="server" ControlToValidate="txtHorarioDesde"
                                    ErrorMessage="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour" ToolTip="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Update">*</asp:RegularExpressionValidator>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtHorarioDesde" runat="server" MaxLength="5" Width="50px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvHorarioDesde" ValidationGroup="Insert" runat="server"
                                    ControlToValidate="txtHorarioDesde" ErrorMessage="Please Enter Open Hour"
                                    ToolTip="Please Enter Open Hour" SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="reHorarioDesde" runat="server" ControlToValidate="txtHorarioDesde"
                                    ErrorMessage="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour" ToolTip="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                            </FooterTemplate>
                            <ItemTemplate>
                                <%# Eval("HorarioDesde")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Closing time" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="50px" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtHorarioHasta" runat="server" Text='<%# Bind("HorarioHasta") %>' MaxLength="5" Width="50px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvHorarioHasta" ValidationGroup="Update" runat="server"
                                    ControlToValidate="txtHorarioHasta" ErrorMessage="Please Enter Close Hour" ToolTip="Please Enter Close Hour"
                                    SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="reHorarioHasta" runat="server" ControlToValidate="txtHorarioHasta"
                                    ErrorMessage="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour" ToolTip="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Update">*</asp:RegularExpressionValidator>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtHorarioHasta" runat="server" MaxLength="5" Width="50px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvHorarioHasta" ValidationGroup="Insert" runat="server"
                                    ControlToValidate="txtHorarioHasta" ErrorMessage="Please Enter Close Hour" ToolTip="Please Enter Close Hour"
                                    SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="reHorarioHasta" runat="server" ControlToValidate="txtHorarioHasta"
                                    ErrorMessage="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour" ToolTip="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                            </FooterTemplate>
                            <ItemTemplate>
                                <%# Eval("HorarioHasta")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Comment" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="100px" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtComentario" runat="server" Text='<%# Bind("Comentario") %>' MaxLength="250" CssClass="MultilineFontCh" TextMode="MultiLine" Width="150px" style="resize: none;"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="reComentario" runat="server" ControlToValidate="txtComentario"
                                    ErrorMessage="Please Enter only standard characters" ToolTip="Please Enter only standard characters"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="[a-zA-Z0-9_.:\s-]*" ValidationGroup="Update">*</asp:RegularExpressionValidator>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtComentario" runat="server" MaxLength="250" CssClass="MultilineFontCh" TextMode="MultiLine" Width="150px" style="resize: none;"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="reComentario" runat="server" ControlToValidate="txtComentario"
                                    ErrorMessage="Please Enter only standard characters" ToolTip="Please Enter only standard characters"
                                    SetFocusOnError="true" ForeColor="Red" ValidationExpression="[a-zA-Z0-9_.:\s-]*" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                            </FooterTemplate>
                            <ItemTemplate>
                                <%# Eval("Comentario")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Active" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:CheckBox ID="chkActivo" runat="server" Checked='<%# Eval("Activo") %>' />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblActivo" runat="server" Text='<%# Eval("Activo") %>'></asp:Label>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:CheckBox ID="chkActivo" runat="server" Checked="true" />
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit" ShowHeader="False" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="100px" ItemStyle-VerticalAlign="Top" FooterStyle-VerticalAlign="Top">
                            <EditItemTemplate>
                                <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="True" CommandName="Update"
                                    Text="Update" OnClientClick="return confirm('Update?')" ValidationGroup="Update"></asp:LinkButton>
                                <asp:ValidationSummary ID="vsUpdate" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="Update" Enabled="true" HeaderText="Validation Summary..." />
                                <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                    Text="Cancel"></asp:LinkButton>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:LinkButton ID="lnkAdd" runat="server" CausesValidation="True" CommandName="Insert"
                                    ValidationGroup="Insert" Text="Insert"></asp:LinkButton>
                                <asp:ValidationSummary ID="vsInsert" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="Insert" Enabled="true" HeaderText="Validation..." />
                            </FooterTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                    Text="Edit"></asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Delete" ShowHeader="False" HeaderStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="Delete" OnClientClick="return confirm('Delete?')"></asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table class="grid" cellspacing="0" rules="all" border="1" id="TablegvEG" style="border-collapse: collapse;">
                            <tr>
                                <th align="left" scope="col">
                                    From the day
                                </th>
                                <th align="left" scope="col">
                                    Until the day
                                </th>
                                <th align="left" scope="col">
                                    Opening time
                                </th>
                                <th align="left" scope="col">
                                    Closing time
                                </th>
                                <th align="left" scope="col">
                                    Comment
                                </th>
                                <th scope="col">
                                    Active
                                </th>
                                <th align="left" scope="col">
                                    Edit
                                </th>
                                <th scope="col">
                                    Delete
                                </th>
                            </tr>
                            <tr class="gridRow">
                                <td colspan="8">
                                    No Records found...
                                </td>
                            </tr>
                            <tr class="gridFooterRow">
                                <td style="vertical-align:top;">
                                    <asp:TextBox ID="txtHFechaDesdeEMPTY" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                    <ajaxToolkit:CalendarExtender ID="HCalendarExtender1EMPTY" TargetControlID="txtHFechaDesdeEMPTY" runat="server" Format="dd/MM/yyyy" />
                                    <asp:RequiredFieldValidator ID="rfvtxtHFechaDesdeEMPTY" 
                                    runat="server" ControlToValidate="txtHFechaDesdeEMPTY" ErrorMessage="Please Enter a Day."
                                    SetFocusOnError="True" ValidationGroup="Insert" ForeColor="Red">*</asp:RequiredFieldValidator>
                                    <asp:RangeValidator Type="Date" runat="server" ID="rvtxtHFechaDesdeEMPTY"
                                    ErrorMessage="Please enter a valid date greater than 01/01/2000 and less than 01/01/2999."
                                    EnableClientScript="true" ControlToValidate="txtHFechaDesdeEMPTY"
                                    MinimumValue="01/01/2000" MaximumValue="01/01/2999"
                                    Display="Dynamic" CultureInvariantValues="false" />
                                </td>
                                <td style="vertical-align:top">
                                    <asp:TextBox ID="txtHFechaHastaEMPTY" runat="server" style="" MaxLength="10" Width="80px"></asp:TextBox>
                                    <ajaxToolkit:CalendarExtender ID="HCalendarExtender2EMPTY" TargetControlID="txtHFechaHastaEMPTY" runat="server" Format="dd/MM/yyyy" />
                                    <asp:RequiredFieldValidator ID="rfvtxtHFechaHastaEMPTY" 
                                    runat="server" ControlToValidate="txtHFechaHastaEMPTY" ErrorMessage="Please Enter a Day."
                                    SetFocusOnError="True" ValidationGroup="Insert" ForeColor="Red">*</asp:RequiredFieldValidator>
                                    <asp:RangeValidator Type="Date" runat="server" ID="rvtxtHFechaHastaEMPTY"
                                    ErrorMessage="Please enter a valid date greater than 01/01/2000 and less than 01/01/2999."
                                    EnableClientScript="true" ControlToValidate="txtHFechaHastaEMPTY" ValidationGroup="Insert" 
                                    MinimumValue="01/01/2000" MaximumValue="01/01/2999"
                                    Display="Dynamic" CultureInvariantValues="false" />
                                    <asp:CompareValidator ID="cvtxtHFechaHastaEMPTY" runat="server" ValidationGroup="Insert" ErrorMessage="Date from should be greater than or equals to Date until." ControlToCompare="txtHFechaDesdeEMPTY" ControlToValidate="txtHFechaHastaEMPTY" Operator="GreaterThanEqual">
                                    </asp:CompareValidator>
                                </td>
                                <td style="vertical-align:top">
                                    <asp:TextBox ID="txtHorarioDesdeEMPTY" runat="server" MaxLength="5" Width="50px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvHorarioDesdeEMPTY" ValidationGroup="Insert" runat="server"
                                        ControlToValidate="txtHorarioDesdeEMPTY" ErrorMessage="Please Enter Open Hour"
                                        ToolTip="Please Enter Open Hour" SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="reHorarioDesdeEMPTY" runat="server" ControlToValidate="txtHorarioDesdeEMPTY"
                                        ErrorMessage="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour" ToolTip="Please Enter Only format Hour (example 09:00 or 14:30) in Open Hour"
                                        SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                                </td>
                                <td style="vertical-align:top">
                                    <asp:TextBox ID="txtHorarioHastaEMPTY" runat="server" MaxLength="5" Width="50px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvHorarioHastaEMPTY" ValidationGroup="Insert" runat="server"
                                        ControlToValidate="txtHorarioHastaEMPTY" ErrorMessage="Please Enter Close Hour" ToolTip="Please Enter Close Hour"
                                        SetFocusOnError="true" ForeColor="Red">*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="reHorarioHastaEMPTY" runat="server" ControlToValidate="txtHorarioHastaEMPTY"
                                        ErrorMessage="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour" ToolTip="Please Enter Only format Hour (example 19:00 or 23:15) in Close Hour"
                                        SetFocusOnError="true" ForeColor="Red" ValidationExpression="^((([0]?[1-9]|1[0-2])(:)[0-5][0-9]((:)[0-5][0-9])?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:)[0-5][0-9]((:)[0-5][0-9])?))|(24:00)$" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                                </td>
                                <td style="vertical-align:top">
                                    <asp:TextBox ID="txtComentarioEMPTY" runat="server" MaxLength="250" CssClass="MultilineFontCh" TextMode="MultiLine" Width="150px" style="resize: none;"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="retxtComentarioEMPTY" runat="server" ControlToValidate="txtComentarioEMPTY"
                                        ErrorMessage="Please Enter only standard characters" ToolTip="Please Enter only standard characters"
                                        SetFocusOnError="true" ForeColor="Red" ValidationExpression="[a-zA-Z0-9_.:\s-]*" ValidationGroup="Insert">*</asp:RegularExpressionValidator>
                                </td>
                                <td style="vertical-align:top">
                                    <asp:CheckBox ID="chkActivoEMPTY" runat="server" Checked="true" />
                                </td>
                                <td colspan="2" align="justify" style="vertical-align:top">
                                    <asp:LinkButton ID="lnkAddEMPTY" runat="server" CausesValidation="True" CommandName="InsertEMPTY"
                                        ValidationGroup="Insert" Text="Insert"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label7" runat="server" Text="Comments"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="ComentariosTextBox" runat="server" MaxLength="250" CssClass="MultilineFont" style="resize: none;" TextMode="MultiLine" Height="80px" TabIndex="502" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="left" style="height: 24px; padding-top:20px">
                <asp:Button ID="AceptarButton" runat="server" TabIndex="504" Text="Accept" onclick="AceptarButton_Click" />
                <asp:Button ID="SalirButton" runat="server" CausesValidation="false" TabIndex="505" Text="Cancel" PostBackUrl="~/Home.aspx" />
                <input type="button" value="Go back" name="Volver" onclick="history.back()" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="padding-top:20px">
                <asp:Label ID="MensajeLabel" runat="server" SkinID="MensajePagina" Text=""></asp:Label>
                <asp:ValidationSummary ID="MensajeValidationSummary" runat="server" SkinID="MensajeValidationSummary"></asp:ValidationSummary>
            </td>
        </tr>
    </table>
</asp:Content>
